function [ num_growpoint ] = Read_arterialtree_element( vessel_trees )
%READ_ARTERIALTREE_ELEMENT Summary of this function goes here
%   Detailed explanation goes here
num_growpoint=0;
for i=1:length(vessel_trees)
    if vessel_trees(i).isartery==1
        %   element1
        for j=1:vessel_trees(i).element1.segments_num
            if vessel_trees(i).element1.segments(j).istrunk==1
                num_growpoint=num_growpoint+1;
            else
                num_growpoint=num_growpoint+2;
            end
        end
        %   element2
        for j=1:vessel_trees(i).element2.segments_num
            if vessel_trees(i).element2.segments(j).istrunk==0
                num_growpoint=num_growpoint+1;
            end
        end
    end   
end

end

